<?php
defined('BY_JYA') or exit('error');
$list = array(
			0=>array('title'=>'特色购物','list'=>array(
							0=>array('name'=>'jy_weishop_shishang','title'=>'时尚穿搭','desc'=>'时尚穿搭，服装电商一键铺货','icon'=>'','action'=>'jy_weishop_shishang/index/'),
							array('name'=>'jy_weishop_food','title'=>'食品超市','desc'=>'美食到家，特色小吃','icon'=>'','action'=>'jy_weishop_food/index/'),
							array('name'=>'jy_weishop_jiadian','title'=>'电器城','desc'=>'电器城，品牌家电购','icon'=>'','action'=>'jy_weishop_jiadian/index/'),
							array('name'=>'jy_weishop_pinpai','title'=>'品牌馆','desc'=>'专注品牌集中营，放心购','icon'=>'','action'=>'jy_weishop_pinpai/index/'),
							array('name'=>'jy_weishop_qingcang','title'=>'每日清仓','desc'=>'每日清仓，打骨折的折扣','icon'=>'','action'=>'jy_weishop_qingcang/index/'),
							array('name'=>'jy_weishop_9kuai','title'=>'9块9特卖','desc'=>'9块9特卖，一口价购销货','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-5.png','action'=>'jy_weishop_9kuai/index/'),
							array('name'=>'jy_weishop_zhekou','title'=>'找折扣','desc'=>'折扣商品集中营，折扣卡券集中','icon'=>'','action'=>'jy_weishop_zhekou/index/'),
							array('name'=>'jy_weishop','title'=>'淘宝客','desc'=>'淘宝流量分销','icon'=>'','action'=>'jy_weishop/goods.index//pluginname=jy_taobaoke'),
							array('name'=>'jy_jdk','title'=>'京东客','desc'=>'京东流量分销','icon'=>'','action'=>'jy_jdk/index/'),
							array('name'=>'jy_duoduoke','title'=>'拼多多','desc'=>'拼多多流量分销','icon'=>'','action'=>'jy_duoduoke/index/'),
							array('name'=>'jy_weishop','title'=>'全球通','desc'=>'全球海关流量分销','icon'=>'','action'=>'jy_weishop/goods.index//isworld=1'),
							array('name'=>'jy_jdpm','title'=>'一元拍','desc'=>'一元拍商品，参拍就有奖励！','icon'=>'','action'=>'jy_jdpm/index/'),
							array('name'=>'jy_creditshop','title'=>'积分商城','desc'=>'让积分产生二次消费','icon'=>'','action'=>'jy_creditshop/index/'),
							array('name'=>'jy_weishop','title'=>'门店购物','desc'=>'街道多个门店,便利店超市','icon'=>'','action'=>'jy_weishop/store.index/'),
							array('name'=>'jy_sns','title'=>'社区论坛','desc'=>'社交互动成交','icon'=>'','action'=>'jy_sns/index/'),
							array('name'=>'jy_sendgoods','title'=>'优品送礼','desc'=>'实现线上送礼功能','icon'=>'','action'=>'jy_sendgoods/index/'),
			)),
			1=>array('title'=>'活动购物','list'=>array(
							0=>array('name'=>'jy_weishop_paysale','title'=>'支付推广','desc'=>'支付促成交','icon'=>'','action'=>'jy_weishop_paysale/index/'),
							array('name'=>'jy_weishop_cutprice','title'=>'降价拍','desc'=>'降价就买，不一样的下单','icon'=>'','action'=>'jy_weishop_cutprice/index/'),
							array('name'=>'jy_unitary','title'=>'人气夺宝','desc'=>'活跃起来，夺宝促成交','icon'=>'','action'=>'jy_unitary/index/'),
							array('name'=>'jy_zhongchou','title'=>'微众筹','desc'=>'产品项目众筹推广品牌','icon'=>'','action'=>'jy_zhongchou/index/'),
							array('name'=>'jy_yousetli','title'=>'优惠接力','desc'=>'将优惠传递下去','icon'=>'','action'=>'jy_yousetli/index/'),
							array('name'=>'jy_weishop_helping','title'=>'微聚力','desc'=>'聚大家的力量成交点赞','icon'=>'','action'=>'jy_weishop_helping/index/'),
							array('name'=>'jy_weishop_tousersale','title'=>'荐客有礼','desc'=>'发起推荐有礼活动','icon'=>'','action'=>'jy_weishop_tousersale/index/'),
							array('name'=>'jy_weishop_codesale','title'=>'优惠码','desc'=>'用优惠码购买商品','icon'=>'','action'=>'jy_weishop_codesale/index/'),
							array('name'=>'jy_weishop_daysale','title'=>'周期购','desc'=>'指定周期成交有惊喜','icon'=>'','action'=>'jy_weishop_daysale/index/'),
							array('name'=>'jy_weishop_arsale','title'=>'AR挖宝','desc'=>'AR扫码挖宝，高大上','icon'=>'','action'=>'jy_weishop_arsale/index/'),
							array('name'=>'jy_weishop_presale','title'=>'特价预售','desc'=>'先预订，后消费','icon'=>'','action'=>'jy_weishop_presale/index/'),
							array('name'=>'jy_aligroup','title'=>'阿里拼团','desc'=>'人多优惠大，看拼多多','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-ping.png','action'=>'jy_aligroup/index/'),
							array('name'=>'jy_bargain','title'=>'砍价活动','desc'=>'大家一起来砍价','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-kanjia.png','action'=>'jy_bargain/index/'),
							//array('name'=>'jy_poster','title'=>'活动海报','desc'=>'用海报的形式宣传','icon'=>'','action'=>'index/'),
							array('name'=>'jy_seckill','title'=>'整点秒杀','desc'=>'定时秒杀，刺激活跃','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-miaosha.png','action'=>'jy_seckill/index/'),
							array('name'=>'jy_invitation','title'=>'邀请卡','desc'=>'发个邀请卡给你朋友','icon'=>'','action'=>'jy_invitation/index/'),
							array('name'=>'jy_weishoplive','title'=>'直播购物','desc'=>'女神直播购物新潮流','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-live.png','action'=>'jy_cmslive/index/'),
							array('name'=>'jy_renwu','title'=>'任务大厅','desc'=>'用任务的形式激活市场','icon'=>'','action'=>'jy_renwu/index/'),
							//array('name'=>'jy_h5game','title'=>'游戏活动','desc'=>'用游戏来促进成交！','icon'=>'','action'=>'jy_h5game/index/'),
			)),
			2=>array('title'=>'我的日常','list'=>array(
							0=>array('name'=>'jy_commission','title'=>'我是微客','desc'=>'全民微客人人分销','icon'=>'','img'=>'../core/resource/images/diy/icon/icon_money.png','action'=>'jy_commission/index/'),
							array('name'=>'jy_weishop','title'=>'我的优惠券','desc'=>'二次消费，经典功能','icon'=>'','img'=>'../core/resource/images/diy/icon/icon_coupon.png','action'=>'jy_weishop/coupon.index/'),
							array('name'=>'jy_exchange','title'=>'兑换中心','desc'=>'各种兑换交换中心','icon'=>'','img'=>'../core/resource/images/diy/icon/icon_credit.png','action'=>'jy_exchange/index/'),
							//array('name'=>'jy_reservation','title'=>'我的核销','desc'=>'线上预约，线下消费','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-6.png','action'=>'jy_reservation/index/'),
							array('name'=>'jy_weishop','title'=>'帮助中心','desc'=>'解决常规问题，节约客服','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-kefu.png','action'=>'jy_weishop/news.list/'),
							array('name'=>'jy_globonus','title'=>'我是股东','desc'=>'股东形式运营店铺','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-7.png','action'=>'jy_globonus/index/'),
							array('name'=>'jy_supplier','title'=>'供货商','desc'=>'多商户,多商家开店','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-4.png','action'=>'jy_supplier/index/'),
							array('name'=>'jy_area_agent','title'=>'经销商','desc'=>'区域代理商经销商','icon'=>'','img'=>'../core/resource/images/diy/icon/icon-2.png','action'=>'jy_area_agent/index/'),
			))
);
$setting=$this->plugin_setting('setting');
if($setting['pluginsactions_title0'] || $setting['pluginsactions_list0']){
	$list[0]['title']=$setting['pluginsactions_title0'];
	$list[0]['list']=$setting['pluginsactions_list0'];
	$list[1]['title']=$setting['pluginsactions_title1'];
	$list[1]['list']=$setting['pluginsactions_list1'];
	$list[2]['title']=$setting['pluginsactions_title2'];
	$list[2]['list']=$setting['pluginsactions_list2'];
}
foreach($list as &$type){
	$newlist=array();
	foreach($type['list'] as $k=>&$p){
		$install = check_account_permission($p['name']);
		if($install){
			$newlist[]=$p;
			$p['is_install'] = 1;
		}else{
			unset($type['list'][$k]);
		}
	}
	$type['list']=$newlist;
}
return  $list;
?>